package com.example.knowledgeget1.KnowtCommon.Entity;

import jakarta.persistence.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Embeddable
public class KnowinId implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Column(name = "course_id")
    private Long courseId;

    @Column(name = "know_id")
    private Long knowId;

    // 构造函数、getter和setter
    public KnowinId() {}

    public KnowinId(Long courseId, Long knowId) {
        this.courseId = courseId;
        this.knowId = knowId;
    }

    // 省略getter和setter
}